Parameters
- exception
- An Exception object to attach to this log message.
- format
- The string message to use, or a format string followed by corresponding args.
- args
- A variable number of arguments to insert into the formatted message string.
Information about the current thread and calling method is automatically captured. The log message will be attributed to the immediate caller of this method. Wrapper implementations should instead use the Log.Write(...) overloads in order to attribute the log message to their own outer callers.
The message will not be sent through System.Diagnostics.Trace and will not be seen by other trace listeners.
This overload also allows an Exception object to be attached to the log message. An Exception-typed null (e.g. from a variable of an Exception type) is allowed for the exception argument, but calls which do not have a possible Exception to attach should use an overload without an exception argument rather than pass a direct value of null, to avoid compiler ambiguity over the type of a simple null.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2